package com.bl.org.domain;

import com.bl.basic.domain.BaseDomain;
import com.bl.system.domain.Role;
import com.bl.user.domain.Logininfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain{

    private static final long serialVersionUID = 1L;
    /**
     *  接收页面传的二次密码
     */
    private String comfirmPassword;
     /**
     * 员工名称
     */
    private String username;
    /**
     * 员工电话
     */
    private String phone;
    /**
     * 员工邮箱
     */
    private String email;
    /**
     * 盐值
     */
    private String salt;
    /**
     * 密码
     */
    private String password;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 员工状态 - 1启用，0禁用
     */
    private Integer state=0;
    /**
     * 所属部门ID
     */
    private Long departmentId;
    private Department department;

    /**
     * 登录信息ID
     */
    private Long logininfoId;
    private Logininfo  logininfo;
    /**
     * 店铺ID
     */
    private Long shopId;
    private  Shop shop;

    //方便从中间表中为当前员工添加角色
    private Long roleId;


}
